package com.sharecar.request;

import com.android.sharecar.model.OnlineUser;

/**
 * This class encapsulates the client's request to OnlineUserService.
 * @author xinyan
 *
 */
public class OnlineUserRequest extends Request {
	private static final long serialVersionUID = 6L;

	public static final int INSERT_A_ONLINE_USER = 1;
	public static final int DELETE_A_ONLINE_USER = 2;
	public static final int SELECT_AROUND_ONLINE_USERS = 3;
	public static final int SELECT_ONLINE_USER_NUM = 4;

	private OnlineUser user;
	private int userId;

	public OnlineUserRequest(int type) {
		this.requestType = type;
	}

	public OnlineUser getUser() {
		return user;
	}

	public void setUser(OnlineUser user) {
		this.user = user;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
}
